﻿using System;
using System.Data;

namespace GestorSQL.DataBase.Interface
{
    public interface IDataBaseProvider : IDisposable
    {
        string ConnectionString { get; set; }

        bool OmitFirstResult { get; }

        bool OmitLastResult { get; }

        string LastResultColumnName { get; }

        IDataReader Execute(string query);

        void BeginTransction();

        void RollbackTransaction();

        void CommitTransaction();

        void Open();

        void Close();
    }
}
